module(...,package.seeall)

--local jewelDefinition = {"hexJwl.png","pntJwl.png","xsdJwl.png"}

local jewelTypes = {
					 {fileName="hexJwl.png",name="hexJwl",score=10},
					 {fileName="pntJwl.png",name="pntJwl",score=20},
					 {fileName="xsdJwl.png",name="xsdJwl",score=50},
					 {fileName="sqrJwl.png",name="sqrJwl",score=20},
					 {fileName="triJwl.png",name="triJwl",score=15}
			
					}



function createJewel()
	print(jewelTypes[1].fileName)
	local jtype = math.random(1,#jewelTypes)
	local color = math.random(1,4)
	jewel = display.newImageRect(jewelTypes[jtype].name..color..".png",21,22)	
	jewel.kind = jewelTypes[jtype]
	return jewel
end